package com.longcai.controller.homepage;


import com.alibaba.fastjson.JSONObject;
import com.longcai.bean.ApiResult;
import com.longcai.service.homepage.ClyjSeckillGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 秒杀商品 前端控制器
 * </p>
 *
 * @author LWK
 * @since 2019-03-20
 */
@Controller
@RequestMapping("/clyjSeckillGoods")
public class ClyjSeckillGoodsController {

    @Autowired
    ClyjSeckillGoodsService bannerService;

    /**
     * description: 首页秒杀商品展示
     * author: LWK
     * time： 09点09分
     */
    @RequestMapping("/getSeckillGoodsList")
    @ResponseBody
    public ApiResult<List<Map<String, Object>>> getHomepageBannerList(@RequestBody JSONObject params) {
        return bannerService.getHomepageBannerList(params);
    }
}

